package cn.com.cetccst.appstore.database.model;


import static cn.com.cetccst.appstore.database.model.CategoryModel.TABLE_NAME;

import androidx.annotation.NonNull;
import androidx.room.ColumnInfo;
import androidx.room.Entity;

import com.google.gson.annotations.SerializedName;

@Entity(tableName = TABLE_NAME, primaryKeys = {"id"})
public class CategoryModel {

    public static final String TABLE_NAME = "category_model";
    @ColumnInfo(name = "create_time")
    @SerializedName("create_time")
    private long createTime;
    @ColumnInfo(name = "id")
    @SerializedName("id")
    @NonNull
    private String id;
    @ColumnInfo(name = "name")
    @SerializedName("name")
    private String name;
    @ColumnInfo(name = "object")
    @SerializedName("object")
    private String object;
    @ColumnInfo(name = "update_time")
    @SerializedName("update_time")
    private long updateTime;
    @ColumnInfo(name = "who_did_this")
    @SerializedName("who_did_this")
    private String whoDidThis;

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getObject() {
        return object;
    }

    public void setObject(String object) {
        this.object = object;
    }

    public long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(long updateTime) {
        this.updateTime = updateTime;
    }

    public String getWhoDidThis() {
        return whoDidThis;
    }

    public void setWhoDidThis(String whoDidThis) {
        this.whoDidThis = whoDidThis;
    }
}
